// --------------------------------------------------------------------------------------------------------------------
// <copyright file="AzureStorageLocation.cs" company="">
//   
// </copyright>
// --------------------------------------------------------------------------------------------------------------------
namespace ExecutionTool.Profile
{
    using System.Runtime.Serialization;

    using ExecutionTool.Common;

    [DataContract]
    public class AzureStorageLocation
    {
        #region Public Properties

        public string AccessKey
        {
            get
            {
                return Helper.Decrypt(this.EncryptedAccessKey);
            }

            set
            {
                this.EncryptedAccessKey = Helper.Encrypt(value);
            }
        }

        [DataMember]
        public string Description { get; set; }

        [DataMember]
        public string EncryptedAccessKey { get; set; }

        [DataMember]
        public string StorageAccount { get; set; }

        #endregion
    }
}
